package threadlocal;

/**
 * Created by chinalin on 2017/3/22.
 */
public class CliecntThread extends Thread{

    private Sequence sequence ;

    public CliecntThread(Sequence sequence){
        this.sequence = sequence ;
    }

    @Override
    public void run() {
        for (int i = 0 ; i < 3 ; i++){
            System.out.println(Thread.currentThread().getName() + "=>" + sequence.getNumber());

        }
    }
}
